package itHeima.lesson2;

import java.sql.Array;
import java.util.ArrayList;

/**
 * 变量的使用
 *
 * @author Administrator
 */
public class Variable {
    public static void main(String[] args) {
//    班级
        int student = 50;
        student = student + 10;
        student = student - 5;
        System.out.println(student);
//        公交车
        int bigMan =0;
        int kid = 0;
        bigMan = bigMan + 3;
        kid = kid + 1;
        bigMan = bigMan + 1;
        kid = kid + 1;
        int personLegth = bigMan + kid;
        int money = bigMan * 2 + kid;
        System.out.println("人数为:" + personLegth+ "\n钱数为:" + money);

//        数据类型
        byte a3 =127;
        int a =1111111111;
        long a1 = 12345674444444L;
        short a2 = 1234;
        float a4 = 1.1f;
        double a5 = 1.1111;
        char a6 = 'a';
        boolean a8 = true;
        String name =  "aaa";
        System.out.println(a3+a6);

//        强制类型转换
        
    }
}
